/**
 * @title feature-
 * @description
 * @author starbooks
 * @date 2020-04-16 21:02
 */

import * as types from "./types";

export default function (state = {number: 0}, action) {
    switch (action.type) {
        case types.INCREMENT:
            return {number: state.number + action.payload}
        default:
             return state;
    }
}
